<template>
  <div>
    <div class="header">
      <div class="van-nav-bar  header">
        <div class="van-nav-bar__content">
          <div class="van-nav-bar__left">
            <i class="van-icon van-icon-arrow-left color-icon"
               style="font-size: 20px;"> </i>
          </div>
          <div class="van-nav-bar__title van-ellipsis title">收益</div>
        </div>
      </div>
      <div class="header-content">
        <span class="amount-title">可提现金额</span>
        <span class="amount-num">¥2000</span>
      </div>
      <div class="header-income">
        <div class="income-item">
          <span class="income-title">本月预估收入</span>
          <span class="income-amount"><span class="income-unit">¥</span>2000</span>
        </div>
        <div style="height: 30px;width: 1px;background: #eeeeee"></div>
        <div class="income-item">
          <span class="income-title">上月预估收入</span>
          <span class="income-amount"><span class="income-unit">¥</span>2000</span>
        </div>
      </div>

    </div>
    <div class="header-button-wrap">

      <div class="header-button">
        <div class="center-button">
          <van-icon name="balance-pay" size="20"/>
          <span>收入明细</span>
        </div>
        <div style="height: 30px;width: 1px;background: #eeeeee"></div>
        <div class="center-button">
          <van-icon name="cash-back-record" size="20"/>
          <span>去提现</span>
        </div>
      </div>

      <p class="income-desc">
        每月20日结算上月预估收入，间日21日再进行提现
      </p>
    </div>
    <van-divider
      style="margin: 10px 30px"
      dashed
      :style="{ color: '#E65D6E', borderColor: '#E65D6E', padding: '0 16px' }"
    >
      订单明细
    </van-divider>
  <order-list/>
  </div>
</template>

<script>
import OrderList from '../../components/OrderList'
export default {
  name: 'extension',
  components: {OrderList},
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style scoped>
.title {
  font-size: 16px;
  color: white;
}

.van-nav-bar__title {
  color: white;
}

.header {
  background: #E65D6E;
}

.color-icon {
  color: white;
}

.van-nav-bar {
  background: #E65D6E;
}

.header-content {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.amount-title {
  margin-top: 30px;
  font-size: 14px;
  color: white;
}

.amount-num {
  margin-bottom: 40px;
  margin-top: 10px;
  font-size: 25px;
  color: white;
  font-weight: bold;
}

.header-button {

  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;

}

.center-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.income-desc {
  color: #c5c5c5;
  font-size: 12px;
  margin-left: 20px;
  margin-top: 10px;
}

.header-button-wrap {
  display: flex;
  flex-direction: column;
  padding: 20px 10px;
  margin: -30px 20px 20px 20px;
  border-radius: 10px;
  background: white;
  box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);

}

.header-income {
  color: white;
  padding: 0 20px 40px 20px;
  background: #E65D6E;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.income-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.income-title {
  font-size: 12px;
}

.income-amount {
  margin-top: 5px;
}

.income-unit {
  margin-right: 3px;
  font-size: 12px;
}
</style>
